package cn.NewsService;



import cn.entity.Detail;
import cn.entity.News1;


import java.util.List;

public interface NewsService1 {
    // 更新选择的新闻
    public boolean updateNews(News1 news1);
    // 添加新闻
    public boolean addNews(News1 news1);
    // 删除新闻
    public boolean deleteNews(int id);
    //查询新闻信息
    public List<News1> getNewsList1();


    public News1 selectNewsById(int id);

    public List<News1> selectNewsPage(int index,int crencount);



    public List<News1> selectNewsPage1(Detail detail);
}
